<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!-- jstl标签使用时，一定要先引入标签头，否则无法使用jstl标签 -->
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>使用bootstrap绘制form表单</title>
<!-- Bootstrap core CSS -->
<link
	href="${pageContext.servletContext.contextPath}/static/plugins/bootstrap-3.3.7-dist/css/bootstrap.min.css"
	rel="stylesheet">
<link
	href="${pageContext.servletContext.contextPath}/static/plugins/bootstrap-3.3.7-dist/css/bootstrap-theme.min.css"
	rel="stylesheet">
<!-- Bootstrap core JavaScript-->
<!-- Placed at the end of the document so the pages load faster -->
<!--import jquery before bootstrap javascript-->
<script
	src="${pageContext.servletContext.contextPath}/static/plugins/jquery-1.12.4/jquery-1.12.4.min.js"></script>
<script
	src="${pageContext.servletContext.contextPath}/static/plugins/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<style>
#maindiv {
	width: 80%;
	padding-top: 10px;
}
</style>
</head>
<body>
	<div id="maindiv">

		<table class="table table-hover">
			<thead>
				<tr>
					<th>序号</th>
					<th>用户名</th>
					<th>创建日期</th>
				</tr>
			</thead>
			<tbody>
				<!-- foreach标签的 items属性绑定的是被遍历的集合对象；
           var 属性中存储的是每次从items里面取出的值；
           varStatus保存了foreach标签遍历是的各种属性特征值：例如当前遍历的值是结果集items中的第几个，奇数个；偶数个；遍历的总数 -->
				<c:forEach items="${sessionScope.lstUserInfos}" var="eachBean"
					varStatus="st">
					<tr>
						<th scope="row">${st.index+1}</th>
						<td>${eachBean.user_name}</td>
						<td>${eachBean.user_createtime}</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</body>
</html>